<?php

namespace App\Http\Controllers\Common;

use App\Http\Controllers\Controller;
use Illuminate\Http\Request;

class RouteController extends Controller
{
    //
    public function make(Request $request)
    {
        $name=$request->input('name');
        $message=$request->input('message');
        $url=route($name);

        return response()->json(['url'=>$url,'message'=>$message]);
    }
}
